// 通用响应类型
export interface ApiResponse<T> {
  code: number
  msg: string
  data: T
}

// 分页请求参数
export interface PageQuery {
  pageNum: number
  pageSize: number
}

// 分页响应数据
export interface PageResult<T> {
  total: number
  list: T[]
}

// 权限类型
export interface Permission {
  id: number
  parentId: number | null
  name: string
  enname: string
  url: string
  type: number
  sort: number
  status: number
  description: string
  children?: Permission[]
}

// 角色类型
export interface Role {
  id: number
  roleName: string
  roleCode: string
  description: string
  status: number
  created: string
}

// 用户类型
export interface User {
  id: number
  username: string
  name: string
  phone: string
  email: string
  status: number
  created: string
} 